<link rel="stylesheet" href="<?= base_url(); ?>third_party/fbox/source/jquery.fancybox.css" type="text/css" media="screen" />
<script src="<?= base_url(); ?>third_party/fbox/source/jquery.fancybox.pack.js"></script>
<script src="<?= base_url(); ?>third_party/fbox/source/helpers/jquery.fancybox-media.js"></script>

<script>
    
    $('.fancybox').fancybox();
    
    $(document).ready(function() {
        $('.fancybox').fancybox({
            padding : 5,
            openEffect  : 'elastic'
            
        });
       
    });
    $(document).ready(function() {
        $('.contact_seller').fancybox({
            padding : 0,
            openEffect  : 'none'
            
        });
       
    });
    		
    /*
     *  Media helper. Group items, disable animations, hide arrows, enable media and button helpers.
     */
    $('.fancybox-media')
    .attr('rel', 'media-gallery')
    .fancybox({
        openEffect : 'none',
        closeEffect : 'none',
        prevEffect : 'none',
        nextEffect : 'none',
        'width'			: 640,
	'height'		: 385,

        arrows : false,
        helpers : {
            media : {},
            buttons : {}
        }
    });
                                
                                
</script>


<div class="box_2">
    <div class="title reg bold"> 
        <!--<a href="#" class="detail_search inline-block align_right fright">See all</a> -->
        <span class="inline-block fleft align_left" style="width:415px"><h3> <a href="<?= base_url();?>member/myaccount"> My Account </a></h3></span>
        <a class="color_3" style="margin-right: 20px" href="<?= base_url();?>member/car/add">Sale Car</a>
        <a class="color_3" style="margin-right: 20px" href="<?= base_url();?>member/car/requirement">Post Requirement</a>
        <div class="clear"></div>
    </div>
    <div class="clear"> </div>
    <div id="inner" style="text-align: justify">
        <div style="width: 300px; float: left; height: auto">
            <ul>
                <li> <strong> <?= $member['info']->first_name . ' ' . $member['info']->last_name; ?> &nbsp; <?= '#' . $member['info']->id; ?><a href="#"> &nbsp; Edit Profile</a></strong> </li>
                <li> Created on : <?= $member['info']->created_on; ?>  </li>
                <li> Last Login : <?= $member['info']->last_login; ?>  </li>
            </ul>
        </div>

        <div style="width: 200px; float: right; height: auto">
            <ul>
                <li><a href="<?= base_url();?>member/myaccount/change_password"> Change Password </a></li>
                <li><a href="<?= base_url();?>member/car/add"> Add New Car for Sale </a></li>
                <li><a href="<?= base_url();?>member/myaccount/delete/<?= $member['info']->id; ?>" onclick="return confirm('Are you sure you want to Delete Account? \n It will delete all the information of your account. ')"> Delete Account </a></li>
            </ul>
        </div>
    </div>
</div> <!-- End of Box_2 -->




<div class="box_2">
    <div class="title reg bold"> 
        <!--<a href="#" class="detail_search inline-block align_right fright">See all</a> -->
        <span class="inline-block fleft align_left"><h3> Listing Videos </h3></span>
        <div class="clear"></div>
    </div>

    <div class="clear"> </div>
    <div id="inner">
        <?php
        if ($this->session->flashdata('message')) {
            $msg = $this->session->flashdata('message');
            echo '<font color="red">' . $msg . '</font>';
        }
        ?> 
        <form id="video" method="POST" action="<?= base_url(); ?>member/myvideo/insert/<?= $listing['info']->id; ?>">
            <img src="<?= base_url(); ?>assets/images/youtube.png" alt="" />
            <div class="color_2">
                &nbsp; Only <strong> Youtube, Vimeo, Metacafe, Dailymotion, Twitvid, Twitpic, Instagram  </strong> Video Allowed ! 
                Please copy the url of Video and Paste here..
            </div>
            <input type="text" name="videourl" value=""  />
            <a onClick="document.getElementById('video').submit()" class="inline-block button_search color_1 bold"><span class="inline-block">Insert Video</span></a>
        </form>

        <div id="photos" style="margin-top: 20px;">
            <?php foreach ($terms['listing-video'] as $listing_video): ?>
                <div class="multiple_photos">
                    <a class="fancybox-media" href="<?= $listing_video->description; ?>" >
                        <img src="<?= base_url(); ?>assets/images/video_icon.png" alt="Video" />
                    </a>
                    <div id="photo_link"><a href="<?= base_url(); ?>member/myvideo/delete/<?= $listing_video->id; ?>/<?= $listing['info']->id; ?>"> Delete Video </a></div>
                    
                
                </div>
            <?php endforeach; ?>

            

        </div>

    </div>

</div> <!-- End of Box_2 -->



